import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
import moment from 'moment';
import {ConfigProvider} from "antd";
import zhCN from 'antd/es/locale/zh_CN';
import 'antd/dist/antd.min.css'

moment.locale('zh-cn');

ReactDOM.createRoot(document.getElementById('root')!).render(
  <ConfigProvider
    locale={zhCN}
    dropdownMatchSelectWidth={false}
    getPopupContainer={(node) => {
      if (node && node.parentElement) {
        return node.parentElement;
      }
      return document.body;
    }}>
    <App/>
  </ConfigProvider>
)
